import React, {Component} from 'react'
import { Carousel, Icon } from 'antd-mobile'
import { Link } from "react-router-dom";

export default class Notice extends Component {
  constructor (props){
   super(props)
   this.state= {}
}
   render() {
     const {history, content} = this.props 
   return <div className="marquee">
      <Icon type="voice" size="xxs" />
     {
       content.length>0 && <Carousel className="my-carousel"
       vertical
       dots={false}
       dragging={false}
       swiping={false}
       autoplay
       infinite
     >
    {
      content.map((item,index)=>{
        return <div className="v-item" key={index} onClick={()=>history.push("/gonggao")}>
             {item.ggName}
        </div>
      })
    }
</Carousel>
     }
   </div>
   }
}